package com.study.springboot.SpringBoot_A.mq.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 赵超
 * @Description
 * @create 2018-03-29 10:37
 **/
@Component
@RabbitListener(queues = "topic.message")
public class TopicReceiver {

    @RabbitHandler
    public void r(String s) {
        System.out.println("receiver1 " + s);
    }
}
